<?php

namespace Lib;
class Autoloader {
	public static function register($prepend = false) {
		spl_autoload_register(array(new self, 'autoload'), true, $prepend);
	}
	public function autoload($className) {
		$filepath = 'classes/' . $className . '.class.php';
		if (is_file($filepath)) {
			require_once ($filepath);
		}
	}
}
